package com.jx.driving.protocol.terminal.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import com.jx.driving.protocol.terminal.codec.FieldReaderWriter;
import com.jx.driving.protocol.terminal.codec.ObjectReaderWriter;

/**
 * 内嵌对象解析
 * 
 * @author shenliuyang
 *
 *         2016年8月14日下午2:56:09
 */
@Target(value = { java.lang.annotation.ElementType.FIELD })
@Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
public @interface ObjectAnnotation {
    int value() default 0;

    /**
     * 设置当前字段顺序
     */
    int order();

    Class<? extends FieldReaderWriter> codec() default ObjectReaderWriter.class;
}
